<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:fn="http://java.sun.com/jsp/jstl/functions"
     class="menu-wrapper">

    <ui:param name="rolesClass" value="#{fn:contains(request.servletPath,'rolesPage') ? 'page-menu-active' :''}"/>
    <ui:param name="usersClass" value="#{fn:contains(request.servletPath,'usersPage') ? 'page-menu-active' :''}"/>
    <ui:param name="aclClass" value="#{fn:contains(request.servletPath,'aclPage') ? 'page-menu-active' :''}"/>

    <ul>
        <li title="#{msgs['/admin/roles']}"
            class="#{rolesClass}">
            <h:panelGroup layout="block" rendered="#{rolesClass != ''}">
                <div>
                    <span class="tab">
                        <span>#{msgs['/admin/roles']}</span>
                    </span>
                </div>
            </h:panelGroup>
            <h:link title="#{msgs['/admin/roles']}" outcome="/admin/rolesPage" rendered="#{rolesClass == ''}">
                <span class="tab">
                    <span>#{msgs['/admin/roles']}</span>
                </span>
            </h:link>
        </li>
        <li title="#{msgs['/admin/users']}"
            class="#{usersClass}">
            <h:panelGroup layout="block" rendered="#{usersClass != ''}">
                <div>
                    <span class="tab">
                        <span>#{msgs['/admin/users']}</span>
                    </span>
                </div>
            </h:panelGroup>
            <h:link title="#{msgs['/admin/users']}" outcome="/admin/usersPage" rendered="#{usersClass == ''}">
                <span class="tab">
                    <span>#{msgs['/admin/users']}</span>
                </span>
            </h:link>
        </li>
        <li title="#{msgs['/admin/acl']}"
            class="#{aclClass}">
            <h:panelGroup layout="block" rendered="#{aclClass != ''}">
                <div>
                    <span class="tab">
                        <span>#{msgs['/admin/acl']}</span>
                    </span>
                </div>
            </h:panelGroup>
            <h:link title="#{msgs['/admin/acl']}" outcome="/admin/aclPage" rendered="#{aclClass == ''}">
                        <span class="tab">
                            <span>#{msgs['/admin/acl']}</span>
                        </span>
            </h:link>
        </li>
    </ul>
</div>